﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AProxy
{
    public class AProxy
    {

        private String ip;
        private int port;
        private int failCount;

        public AProxy(String ip, int port)
        {
            this.ip = ip;
            this.port = port;
        }

        public override string ToString()
        {
            return ip + ":" + port;
        }

        public int getPort()
        {
            return port;
        }

        public String getIP()
        {
            return ip;

        }

        public void incrementFailCount()
        {
            failCount++;
        }

        public int getFailCount()
        {
            return failCount;
        }
    }

}
